package com.zzs.server.pojo.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
 * @author zzs
 * @date 2025/03/17
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
public class LoginDTO {
    @NotBlank(message = "账号不能为空")
    @Size(min = 4, max = 20, message = "账号长度要在4到20范围内")
    private String account;
    @NotBlank(message = "密码不能为空")
    @Size(min = 4, max = 20, message = "密码长度要在4到20范围内")
    private String password;
}
